package MOLE.App;

import MOLE.*;

/** 
 User ��ժҪ˵����
*/
public class User extends Every
{
	public int Uid = 0;
	public String Name = "none";


	public User(int uid)
	{
		 Uid = uid;
		 Name = (new MOLE.SQLOS("hy_info"))._GetFieldVale("hy_name", " hy_num=" + Uid);

	}

	public User() //new user
	{

	}


	//reg
	public final boolean NewUser()
	{
		//add user
		return true;

	}

	public static DataTable Search(String UserName)
	{
		String sql = "exec  spUser_Search  '" + UserName + "'";
		DataTable d = MOLE.SQL.GetDataTable(sql);
		return d;

	}

	//public bool
//		set passwordProtect
//		bool CheckPasswordAnser()
//		void ResetPawwword


}